package com.ruoyi.mp.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 公众号素材对象 mp_material
 * 
 * @author ruoyi
 * @date 2023-11-18
 */
public class MpMaterial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 公众号账号的编号 */
    @Excel(name = "公众号账号的编号")
    private Long accountId;

    /** 公众号 appId */
    @Excel(name = "公众号 appId")
    private String appId;

    /** 公众号素材 id */
    @Excel(name = "公众号素材 id")
    private String mediaId;

    /** 文件类型 */
    @Excel(name = "文件类型")
    private String type;

    /** 是否永久 */
    @Excel(name = "是否永久")
    private String permanent;

    /** 文件服务器的 URL */
    @Excel(name = "文件服务器的 URL")
    private String url;

    /** 名字 */
    @Excel(name = "名字")
    private String name;

    /** 公众号文件 URL */
    @Excel(name = "公众号文件 URL")
    private String mpUrl;

    /** 视频素材的标题 */
    @Excel(name = "视频素材的标题")
    private String title;

    /** 视频素材的描述 */
    @Excel(name = "视频素材的描述")
    private String introduction;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private String deleted;

    /** 租户编号 */
    @Excel(name = "租户编号")
    private Long tenantId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAccountId(Long accountId) 
    {
        this.accountId = accountId;
    }

    public Long getAccountId() 
    {
        return accountId;
    }
    public void setAppId(String appId) 
    {
        this.appId = appId;
    }

    public String getAppId() 
    {
        return appId;
    }
    public void setMediaId(String mediaId) 
    {
        this.mediaId = mediaId;
    }

    public String getMediaId() 
    {
        return mediaId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setPermanent(String permanent) 
    {
        this.permanent = permanent;
    }

    public String getPermanent() 
    {
        return permanent;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setMpUrl(String mpUrl) 
    {
        this.mpUrl = mpUrl;
    }

    public String getMpUrl() 
    {
        return mpUrl;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setIntroduction(String introduction) 
    {
        this.introduction = introduction;
    }

    public String getIntroduction() 
    {
        return introduction;
    }
    public void setDeleted(String deleted) 
    {
        this.deleted = deleted;
    }

    public String getDeleted() 
    {
        return deleted;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("accountId", getAccountId())
            .append("appId", getAppId())
            .append("mediaId", getMediaId())
            .append("type", getType())
            .append("permanent", getPermanent())
            .append("url", getUrl())
            .append("name", getName())
            .append("mpUrl", getMpUrl())
            .append("title", getTitle())
            .append("introduction", getIntroduction())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleted", getDeleted())
            .append("tenantId", getTenantId())
            .toString();
    }
}
